package com.qyhl.webtv.module_news.luckydraw.fragment;


import com.qyhl.webtv.commonlib.entity.news.LuckDrawInfoBean;
import com.qyhl.webtv.commonlib.entity.news.LuckDrawLiveBean;
import com.qyhl.webtv.commonlib.entity.news.LuckDrawPhaseBean;
import com.qyhl.webtv.commonlib.entity.news.NewsBean;

import java.util.List;

/**
 * Created by Administrator on 2018/6/8.
 */

public interface LuckDrawFragmentContract {
    interface LuckDrawView {
        void setTop(boolean isShow, List<NewsBean> beanList);

        void setLive(boolean isShow, List<LuckDrawLiveBean> beanList);

        void setPhase(LuckDrawPhaseBean bean);

        void setPhaseError(String msg);

        void setQueryInfoSuccess(boolean isWinner, List<LuckDrawInfoBean> beanList);

        void setQueryInfoError(String msg);

        void queryTicketInfoSuccess(List<LuckDrawInfoBean> beanList);

        void queryTicketInfoError(String msg);

        void commentResult(boolean isSuccess, String msg);
    }

    interface LuckDrawPresenter {
        void getTop(String sections);

        void getLive(String catalogId, String type);

        void setTop(boolean isShow, List<NewsBean> beanList);

        void setLive(List<LuckDrawLiveBean> beanList);

        void getPhase();

        void queryInfo(String phoneNum);

        void queryTicketInfo(String phoneNum);

        void setQueryInfoSuccess(boolean isWinner, List<LuckDrawInfoBean> beanList);

        void setQueryInfoError(int code, String msg);

        void queryTicketInfoSuccess(List<LuckDrawInfoBean> beanList);

        void queryTicketInfoError(int code, String msg);

        void setPhase(LuckDrawPhaseBean bean);

        void setPhaseError(int code, String msg);

        void commitInfo(String code, String codeNum, String sum, String date, String phoneNum, String businessName);

        void commentResult(boolean isSuccess, String msg);
    }

    interface LuckDrawModel {
        void getTop(String sections);

        void getLive(String catalogId, String type);

        void getPhase();

        void queryInfo(String phoneNum);

        void queryTicketInfo(String phoneNum);

        void commitInfo(String code, String codeNum, String sum, String date, String phoneNum, String businessName);
    }
}
